package com.nami.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.nami.common.domain.pojo.SysRole;
import com.nami.system.mapper.SysRoleMapper;
import com.nami.system.service.ISysRoleService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> implements ISysRoleService {
    @Override
    public List<SysRole> getRolesByUserId(Long id) {
        List<SysRole> roles = baseMapper.getRolesByUserId(id);
        return roles;
    }
}
